﻿@model ecommerce2011.ClientesServiceProxy.customerDTO

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>customerDTO</legend>

        <div class="editor-label">
            Nombres
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fname)
            @Html.ValidationMessageFor(model => model.fname)
        </div>

        <div class="editor-label">
            Apellidos
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.lname)
            @Html.ValidationMessageFor(model => model.lname)
        </div>

        <div class="editor-label">
            Teléfono
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.phonenumber)
            @Html.ValidationMessageFor(model => model.phonenumber)
        </div>

        <div class="editor-label">
            Email
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

        <div class="editor-label">
            Tipo de Tarjeta de Crédito (Visa, etc.)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.creditcardtype)
            @Html.ValidationMessageFor(model => model.creditcardtype)
        </div>

        <div class="editor-label">
            Número de Tarjeta de Crédito
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.creditcardnumber)
            @Html.ValidationMessageFor(model => model.creditcardnumber)
        </div>

        <div class="editor-label">
            Tipo de Cliente
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.status)
        </div>

        <p>
            <input type="submit" value="Guardar Datos" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
